package com.pro.exam.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pro.exam.web.mapper.TransDictMapper;
import com.pro.exam.web.model.TransDictPojo;
import com.pro.exam.web.model.TransDict;

@Service("dictTransService")
public class DictTransService {
	@Autowired
	TransDictMapper transDictMapper;
	
	public int add(TransDict td){
		return transDictMapper.insert(td);
	}
	
	public TransDictPojo selectByCh(String ch){
		return transDictMapper.selectByCh(ch);
	}
	
	public List<TransDictPojo> selectAll(){
		return transDictMapper.selectAll();
	}
}
